package foundation;

import java.util.Vector;

import javax.swing.JTable;

import business.table.TDailyReport;

import parameter.TableType;

public abstract class Table extends JTable {
    /**
     * 
     */
    private static final long serialVersionUID = 1L;
    //protected static DefaultTableModel tableModel;;

    public Table(Vector<Vector<String>> rowData, Vector<String> columnNames) {
        super(rowData, columnNames);
    }
    
    public Table() {
    }
    
    public Table createTable(int tableType) {
        Table table = null;
        
        switch (tableType) {
            case TableType.DailyReportFlux:
                table = new TDailyReport(tableType);
            case TableType.DailyReportTrade:
                table = new TDailyReport(tableType);
            default:
                break;
        }
        
        return table;
    }
    
    public abstract boolean initTable(int tableType);
}
